const formatComponentName = (name) => {
  return name.split('').reduce((total, curr, idx, arr) => {
    if (curr === '-') {
      curr = '';
      arr[idx + 1] = arr[idx + 1].toUpperCase()
    }
    total += curr
    return total
  })
}

module.exports = {
  formatComponentName
}